package com.whl.org.service;

import com.whl.basic.service.IBaseService;
import com.whl.org.domain.Shop;
import com.whl.org.domain.ShopAuditLog;
import com.whl.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;


/**
 *  店铺业务接口
 */
public interface IShopService extends IBaseService<Shop> {

    // 店铺入驻
    void settlement(Shop shop);

    // 店铺审核通过
    void pass(ShopAuditLog shopAuditLog) throws MessagingException;

    // 店铺审核驳回
    void reject(ShopAuditLog shopAuditLog) throws MessagingException;

    // 获取每一个店铺的数量
    List<ShopDto> getCountByState();

    // 店铺激活
    void shopActive(Long id);
}
